package com.cykj.mapper;

import com.cykj.entity.CyGoodDO;
import com.cykj.vo.CyGoodVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodMapper {
    /**
     * @param
     * @return java.util.List<com.cykj.entity.CyGoodDO>
     * @Description 获取商品列表
     */
    List<CyGoodDO> getGoodList();

    /**
     * @Description 更新商品库存
     * @param goodVO
     * @return java.lang.Integer
     */
    Integer subGoodStock(@Param("goodVO") CyGoodVO goodVO);
}
